package com.ruoyi.personnel.service.impl;

import com.ruoyi.personnel.domain.Job;
import com.ruoyi.personnel.mapper.JobMapper;
import com.ruoyi.personnel.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class JobServiceImpl implements JobService {

    @Autowired
    private JobMapper jobMapper;

    @Override
    public List<Job> queryByPage(String searchValue) {
        return jobMapper.queryByPage(searchValue);
    }

    @Override
    public List<Job> getList() {
        return jobMapper.getList();
    }

    @Override
    public int insert(Job job) {
        return jobMapper.insert(job);
    }

    @Override
    public int update(Job job) {
        return jobMapper.update(job);
    }

    @Override
    public int delByIds(Long[] ids) {
        return jobMapper.delByIds(ids);
    }

    @Override
    public Job getJobById(int id) {
        return jobMapper.getJobById(id);
    }
}
